/* eslint-disable */
import request from "@/request";

/** addDetail POST /api/api/clothing/history/detail/add */
export async function addDetailUsingPost(
  body: API.ClothingHistoryDetail,
  options?: { [key: string]: any }
) {
  return request<API.BaseResponseLong_>(
    "/api/api/clothing/history/detail/add",
    {
      method: "POST",
      headers: {
        "Content-Type": "application/json",
      },
      data: body,
      ...(options || {}),
    }
  );
}

/** getDetail POST /api/api/clothing/history/detail/get */
export async function getDetailUsingPost(
  body: API.ClothingHistoryDetail,
  options?: { [key: string]: any }
) {
  return request<API.BaseResponseClothingHistoryDetail_>(
    "/api/api/clothing/history/detail/get",
    {
      method: "POST",
      headers: {
        "Content-Type": "application/json",
      },
      data: body,
      ...(options || {}),
    }
  );
}

/** updateDetail POST /api/api/clothing/history/detail/update */
export async function updateDetailUsingPost(
  body: API.ClothingHistoryDetail,
  options?: { [key: string]: any }
) {
  return request<API.BaseResponseBoolean_>(
    "/api/api/clothing/history/detail/update",
    {
      method: "POST",
      headers: {
        "Content-Type": "application/json",
      },
      data: body,
      ...(options || {}),
    }
  );
}

/** addPeriod POST /api/api/clothing/history/period/add */
export async function addPeriodUsingPost(
  body: API.ClothingHistoryPeriod,
  options?: { [key: string]: any }
) {
  return request<API.BaseResponseLong_>(
    "/api/api/clothing/history/period/add",
    {
      method: "POST",
      headers: {
        "Content-Type": "application/json",
      },
      data: body,
      ...(options || {}),
    }
  );
}

/** listDetails POST /api/api/clothing/history/period/detail */
export async function listDetailsUsingPost(
  body: API.ClothingHistoryPeriod,
  options?: { [key: string]: any }
) {
  return request<API.BaseResponseListClothingHistoryDetail_>(
    "/api/api/clothing/history/period/detail",
    {
      method: "POST",
      headers: {
        "Content-Type": "application/json",
      },
      data: body,
      ...(options || {}),
    }
  );
}

/** listPeriods GET /api/api/clothing/history/period/list */
export async function listPeriodsUsingGet(options?: { [key: string]: any }) {
  return request<API.BaseResponseListClothingHistoryPeriod_>(
    "/api/api/clothing/history/period/list",
    {
      method: "GET",
      ...(options || {}),
    }
  );
}

/** updatePeriod POST /api/api/clothing/history/period/update */
export async function updatePeriodUsingPost(
  body: API.ClothingHistoryPeriod,
  options?: { [key: string]: any }
) {
  return request<API.BaseResponseBoolean_>(
    "/api/api/clothing/history/period/update",
    {
      method: "POST",
      headers: {
        "Content-Type": "application/json",
      },
      data: body,
      ...(options || {}),
    }
  );
}
